﻿#include<iostream>
#include"IntArray.h"
#include<iomanip>

using namespace std;

int main() {
	int n;
	cout << "a的元素个数：";
	cin >> n;

	IntArray a(n);

	for (int i = 0; i < a.size(); i++) {
		a[i] = i;
	}

	IntArray b(128);
	IntArray c(256);

	cout << "b和c的元素个数从" << b.size() << "和" << c.size();

	c = b = a;

	cout << "变为" << b.size() << "和" << c.size() << "\n";

	IntArray d = b;

	cout << " a b c d\n";
	cout << "---------------------\n";

	for (int i = 0; i < n; i++) {
		cout << setw(5) << a[i] << setw(5) << b[i]
			<< setw(5) << c[i] << setw(5) << d[i] << '\n';
	}

	cin.get();
	cin.get();
}
